<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="hammer-animation">
        <img src="./img/狗头.jpg" alt="Hammer" class="hammer">
        <img src="./img/狗头.jpg" alt="Image" class="image">
    </div>


    <style>
        .hammer-animation {
            position: relative;
            width: 300px;
            height: 300px;
            overflow: hidden;
        }

        .hammer {
            position: absolute;
            top: 0;
            left: 0;
            animation: hammer-animation 0.5s infinite;
        }

        .image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        @keyframes hammer-animation {
            0% {
                transform: rotate(0deg);
            }

            25% {
                transform: rotate(20deg);
            }

            50% {
                transform: rotate(0deg);
            }

            75% {
                transform: rotate(-20deg);
            }

            100% {
                transform: rotate(0deg);
            }
        }
    </style>
</body>

</html>